import request from '@/utils/request'

// 查询
export const getPermission = () => request.get('/sys/permission')

// 新增
export const addPermission = data => request.post('/sys/permission', data)

// 删除
export const delPermission = id => request.delete(`/sys/permission/${id}`)

export const getPermissionUser = id => request.get(`/sys/permission/${id}`)

// 修改
export const updatePermission = data => request.put(`/sys/permission/${data.id}`, data)
